import { request } from '@ruifox-cms/utils'

// 获取所有服务列表
export function getServerList(params) {
    return request({
        url: '/server/getServerList',
        method: 'get',
        params
    })
}
// 设置用户服务
export function setUserServer(data) {
    return request({
        url: '/server/setUserServer',
        method: 'post',
        data
    })
}
// 获取用户服务列表
export function getUserServer(params) {
    return request({
        url: '/server/getUserServer',
        method: 'get',
        params
    })
}
// 添加服务
export function addServer(data) {
    return request({
        url: '/server/addServer',
        method: 'post',
        data
    })
}
// 更新服务
export function updateServer(data) {
    return request({
        url: '/server/updateServer',
        method: 'post',
        data
    })
}
// 删除服务
export function deleteServer(data) {
    return request({
        url: '/server/deleteServer',
        method: 'post',
        data
    })
}